<?php
/**
 * User: @lose
 * Date: 2019-10-23
 * Time: 16:58
 */

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/photo',
    'namespace' => 'Frieza\\Modules\\Photo\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {

    $router->get('photorecheckquality/index', 'PhotoReCheckQualityController@index');//复审&质检列表
    $router->get('photorecheckquality/index/create', 'PhotoReCheckQualityController@add');//添加任务
    $router->get('photorecheckquality/index/edit/{id}', 'PhotoReCheckQualityController@edit');//修改任务
    $router->get('photorecheckquality/index/getNum', 'PhotoReCheckQualityController@getNum');//获取任务数量
    $router->get('photorecheckquality/deletetask/{id}', 'PhotoReCheckQualityController@deleteTask');//删除任务
    $router->get('photorecheckquality/executetask/{id}', 'PhotoReCheckQualityController@finishTask');//提交完成任务
    $router->get('photorecheckquality/allfinish/{id}', 'PhotoReCheckQualityController@allFinish');//提交完成任务
    $router->post('photorecheckquality/index/editsubmit', 'PhotoReCheckQualityController@editsubmit');//提交完成任务
    $router->get('photorecheckquality/checkindex', 'PhotoReCheckQualityController@checkIndex');//任务复审列表
    $router->get('photorecheckquality/checktaskindex', 'PhotoReCheckQualityController@checkTaskIndex');//任务质检列表
    $router->post('photorecheckquality/index/changeContentCategoryLabel', 'PhotoReCheckQualityController@changeContentCategoryLabel');//复审改变内容品类
    $router->post('photorecheckquality/index/rechecksetgrade', 'PhotoReCheckQualityController@rechecksetGrade')->name('photorecheckquality.rechecksetGrade'); //复审note打分

    // 待精选池
    $router->get('operatefeature', 'OperateFeatureController@index'); // 列表页

    //note打标签相关
    $router->get('index', 'PhotoController@index')->name('photo.index');
    $router->get('tagClick', 'PhotoController@tagClick')->name('photo.tagClick'); // 标签纠错
    $router->post('tagCheck', 'PhotoController@tagCheck')->name('photo.tagCheck'); // 标签审核
    $router->get('tagSearch', 'PhotoController@tagSearch')->name('photo.tagSearch'); // 联想标签
    $router->post('tagCheckMany', 'PhotoController@tagCheckMany')->name('photo.tagCheckMany'); // 批量审核标签
    $router->get('noteLabel', 'PhotoNoteLabelController@index'); // note打标签

    //note审核相关
    $router->get('photocheck/index', 'PhotoCheckController@index');//图片审核列表
    $router->post('photocheck/setgrade', 'PhotoCheckController@setGrade')->name('photocheck.grade'); //note打分
    $router->post('photocheck/setLowGrade', 'PhotoCheckController@setLowGrade'); //差级别note打分
    $router->post('photocheck/setmark', 'PhotoCheckController@setMark')->name('photocheck.mark'); //note标记特征
    $router->get('photocheck/marktag', 'PhotoCheckController@markTag');//标记特征页面
    $router->get('photocheck/marktag/create', 'PhotoCheckController@add');//添加特征
    $router->get('photocheck/marktag/{id}/edit', 'PhotoCheckController@edit');//修改特征
    $router->post('photocheck/marktag/save', 'PhotoCheckController@editSubmit');//添加、修改特征提交
    //$router->post('photocheck/index/release', 'PhotoCheckController@release');//批量操作
    $router->get('photocheck/index/extra', 'PhotoCheckController@extra');//时间段范围内批量普通
    $router->post('photocheck/index/savenormalmany', 'PhotoCheckController@saveNormalMany');//时间段范围内批量普通
    $router->get('photocheck/index/getCategoryLabel', 'PhotoCheckController@getCategoryLabel')->name('getCategoryLabel');//根据一级获取二级
    $router->get('photocheck/index/getCategoryLabelById', 'PhotoCheckController@getCategoryLabelById');//根据一级获取二级
    $router->post('photocheck/index/changeContentCategoryLabel', 'PhotoCheckController@changeContentCategoryLabel');//改变内容品类
    $router->post('photocheck/index/resetContentCategory', 'PhotoCheckController@resetContentCategory');//改变内容品类
    //违规note相关
    $router->get('badphotocheck/index', 'BadPhotoCheckController@index');//违规图片列表
    $router->post('badphotocheck/rollback', 'BadPhotoCheckController@rollback');//差级图片回滚为正常
    $router->get('badphotocheck/rollbackReason/{id}', 'BadPhotoCheckController@rollbackReason'); // 差级评分原因选择
    $router->get('badphotocheck/checkRollback/{id}', 'BadPhotoCheckController@checkRollback'); // 差级评分原因选择
    //$router->post('badphotocheck/operate', 'BadPhotoCheckController@operate')->name('badphotocheck.operate');//违规图片操作


    $router->post('submitTags', 'PhotoController@submitTags')->name('photo.submitTags'); // 保存标签
    $router->post('sublimeTagForVideo', 'PhotoController@sublimeTagForVideo')->name('photo.sublimeTagForVideo'); // 保存视频标签
    $router->get('mouldList', 'PhotoController@mouldList')->name('photo.mouldList'); // 模板列表
    $router->get('mouldList/{id}/edit', 'PhotoController@editMould'); // 修改模板页面
    $router->post('mouldList/{id}/save', 'PhotoController@submitMould'); // 模板保存

    $router->get('photo/detail/{id}', 'PhotoController@detail');//图片详情页


    $router->get('photocheck/lowScore/{id}', 'PhotoCheckController@lowScore'); // 差级评分原因选择

    $router->get('photocheck/like/{id}', 'PhotoCheckController@saveLike');//添加运营点赞
    $router->get('photocheck/poorQuality/{id}', 'PhotoCheckController@poorQuality'); // 检测质量是否打分为差

    $router->get('photocheck/business/{id}/{type}', 'PhotoCheckController@editBusiness');//添加商业标识
    $router->get('photocheck/displayBusiness/{id}/{type}','PhotoCheckController@displayBusiness');//硬广
    $router->get('photocheck/copy/{id}','PhotoCheckController@copyUrl');//复制H5链接

    //回答列表
    $router->get('answer/list', 'AnswerController@index');
    $router->post('photo/operate', 'OperateController@operate')->name('photo.operate');
    $router->get('answer/export', 'AnswerController@export'); // 导出

    // note关联的banner
    $router->get('relatedBanner', 'RelatedBanner@index');
    $router->get('relatedBanner/create', 'RelatedBanner@create');
    $router->get('relatedBanner/{id}/edit', 'RelatedBanner@create');
    $router->post('relatedBanner/save', 'RelatedBanner@save');
    $router->delete('relatedBanner/{id}', 'RelatedBanner@delete');

    // 审核日志列表
    $router->get('photoAuditLog', 'PhotoAuditLogController@index');

    //note列表页
    $router->get('photoList/index','PhotoListController@index');
    $router->get('photoList/copy/{id}','PhotoListController@copyUrl');//复制H5链接
    //获取所有的内容标签分类
    $router->get('noteLabel/content/labelList', 'PhotoNoteLabelController@labelList');
    //内容标签的添加
    $router->post('noteLabel/content/labelSubmit', 'PhotoNoteLabelController@labelSubmit');

    // 自动识图审核
    $router->get('violation/index', 'ViolationController@index'); // 列表页
    $router->post('violation/setNormal', 'ViolationController@setNormal'); // 置为正常
    $router->post('violation/banUser', 'ViolationController@banUser'); // B1并封禁用户
    $router->post('violation/fansView', 'ViolationController@fansView'); // 仅粉丝可见
    $router->post('violation/batchNormal', 'ViolationController@batchNormal'); // 批量置为正常
    $router->post('violation/pageNormal', 'ViolationController@pageNormal'); // 本页置为正常
});